import { createApp } from 'vue'
//import './style.css'

//从element-plus框架导入ElementPlus组件
import ElementPlus from 'element-plus'

//导入国际化的中文包
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//导入element-plus的css样式，不需要from子句
import 'element-plus/dist/index.css'



import App from './App.vue'

//导入路由组件
import router from './router/router.js';


//注册element-plus里的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
let app=createApp(App);//根组件
for(const[key,component]of Object.entries(ElementPlusIconsVue)){
    app.component(key,component)
}



    app.use(ElementPlus,{locale:zhCn})
    .use(router)
    .mount('#app')
